script.
	$('#btn-signUp').on('click',function(){
		$('#modal-signUp').modal('show');
	});
	//登录
	$('#form-login').validateInit({
		submitHandler:function(form){
			$('#form-login .form').addClass('loading');
			$.post('/login',$('#form-login').serializeJson(),function(data){
				if(data.result=='success')
					window.location.reload();
				else
					$('#msg-login').text(data.msg).show();
				$('#form-login .form').removeClass('loading');
			},'json');
		}
	});
	//注册
	$('#form-signUp').validateInit({
		submitHandler:function(form){
			$('#form-signUp .form').addClass('loading');
			$.post('/signUp',$('#form-signUp').serializeJson(),function(data){
				if(data.result=='success')
					window.location.reload();
				else
					$('#msg-signUp').text(data.msg).show();
				$('#form-signUp .form').removeClass('loading');
			},'json');
		}
	});